<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<h:html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>login</title>
</h:head>
<h:body>


	<h:form>
		<table>
			<tr>
				<td>用户名:</td>
				<td><p:inputText value="#{userController.user.username}"
						placeholder="用户名" id="username">
						<p:tooltip for="username" value="用户名"></p:tooltip>
					</p:inputText></td>
			</tr>
			<tr>
				<td>密码:</td>
				<td><p:password value="#{userController.user.password}"
						placeholder="密码" id="password">
						<p:tooltip for="password" value="密码"></p:tooltip>
					</p:password></td>
			</tr>
		</table>
		<p:commandButton value="登录" action="#{userController.login()}"
			style="margin-left:60px"></p:commandButton>
		<p:commandLink value="注册" action="#{userController.sign()}" id="sign"
			style="font-size:12px;text-decoration:none;color:gray" />
	</h:form>
</h:body>
</h:html>